
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserNoticeRequest struct {

	Uid string `json:"uid" form:"uid"`

	Type string `json:"type" form:"type"`

	User string `json:"user" form:"user"`

	Title string `json:"title" form:"title"`

	Content string `json:"content" form:"content"`

	AddTime string `json:"add_time" form:"add_time"`

	IsSend string `json:"is_send" form:"is_send"`

	SendTime string `json:"send_time" form:"send_time"`

}

func (r *UserNoticeRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserNoticeRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"type": "required",

		"user": "required",

		"title": "required",

		"content": "required",

		"add_time": "required",

		"is_send": "required",

		"send_time": "required",

	}
}

func (r *UserNoticeRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserNoticeRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserNoticeRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
